babl-cache: rearrange per fish data
authorØyvind Kolås <pippin@gimp.org>
Wed, 23 Nov 2016 10:28:24 +0000 (11:28 +0100)
committerØyvind Kolås <pippin@gimp.org>
Wed, 23 Nov 2016 10:28:24 +0000 (11:28 +0100)
babl/babl-cache.c

index 7dd764d0f15b5b55bd453e8b6da39a63724797bf..e32e585e4b13c3c060206174ea32c96f3eeec25b 100644 (file)
@@ -102,16 +102,16 @@ babl_fish_serialize (Babl *fish, char *dest, int n)
   babl_get_name (fish->fish.destination));
   n -= strlen (d);d += strlen (d);
 
-  snprintf (d, n, "\terror=%f", fish->fish.error);
+  snprintf (d, n, "\tpixels=%li", fish->fish.pixels);
   n -= strlen (d);d += strlen (d);
 
   snprintf (d, n, " processings=%i", fish->fish.processings);
   n -= strlen (d);d += strlen (d);
 
-  snprintf (d, n, " pixels=%li", fish->fish.pixels);
+  snprintf (d, n, " cost=%d", (int)fish->fish_path.cost);
   n -= strlen (d);d += strlen (d);
 
-  snprintf (d, n, " cost=%f", fish->fish_path.cost);
+  snprintf (d, n, " error=%f", fish->fish.error);
   n -= strlen (d);d += strlen (d);
 
   snprintf (d, n, "\n");